﻿using System;
using System.Windows.Forms;
using System.Windows.Markup;

namespace RSkor.Common.WinForms
{
    [MarkupExtensionReturnType(typeof(EventHandler))]
    public class EventHandlerExtension : BaseMarkupExtension
    {
        public override object ProvideValue(IServiceProvider serviceProvider)
        {
            return new EventHandler(delegate(object sender, EventArgs e) { MessageBox.Show("Oppa!"); });
        }
    }
}
